-- GENERATED SPELL FOR [Witchwing Roguefeather] --


function spell0_3277(pUnit, Event) --@Exploit Weakness,n/a--
pUnit:FullCastSpellOnTarget(6595,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3277', 0, 1)
end

function spell1_3277(pUnit, Event) --@Slowing Poison,n/a--
pUnit:FullCastSpellOnTarget(7992,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3277', 26000, 1)
end

function Sorts_3277(pUnit, Event)
local choix_sorts_3277 = math.random(0, 1)
if choix_sorts_3277 == 0 then
pUnit:RegisterEvent('spell0_3277', 1, 1)
end
if choix_sorts_3277 == 1 then
pUnit:RegisterEvent('spell1_3277', 1, 1)
end
end

function mob3277_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3277', math.random(1500, 3000), 1)
end

function mob3277_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3277_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3277_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3277, 1, 'mob3277_Action')
RegisterUnitEvent(3277, 2, 'mob3277_Leave')
RegisterUnitEvent(3277, 3, 'mob3277_Kill')
RegisterUnitEvent(3277, 4, 'mob3277_Die')
